+2006-07-20 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkicontheme.h:
+ * gtk/gtkicontheme.c (_gtk_icon_theme_ensure_builtin_cache):
+ Export this privately.
+
+ * gtk/gtkiconfactory.c (render_fallback_image): And call it
+ here to initialize the builtin cache before using it. (#348063,
+ Diego Pettenò)
+
2006-07-19 Federico Mena Quintero <federico@novell.com>
* tests/autotestfilechooser.c (test_black_box): Argh, initialize
+2006-07-20 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkicontheme.h:
+ * gtk/gtkicontheme.c (_gtk_icon_theme_ensure_builtin_cache):
+ Export this privately.
+
+ * gtk/gtkiconfactory.c (render_fallback_image): And call it
+ here to initialize the builtin cache before using it. (#348063,
+ Diego Pettenò)
+
2006-07-19 Federico Mena Quintero <federico@novell.com>
* tests/autotestfilechooser.c (test_black_box): Argh, initialize
if (fallback_source.type == GTK_ICON_SOURCE_EMPTY)
{
- GdkPixbuf *pixbuf = _gtk_icon_cache_get_icon (_builtin_cache,
- GTK_STOCK_MISSING_IMAGE,
- "24");
+ GdkPixbuf *pixbuf;
+
+ _gtk_icon_theme_ensure_builtin_cache ();
+
+ pixbuf = _gtk_icon_cache_get_icon (_builtin_cache,
+ GTK_STOCK_MISSING_IMAGE,
+ "24");
gtk_icon_source_set_pixbuf (&fallback_source, pixbuf);
g_object_unref (pixbuf);
}
priv->last_stat_time = tv.tv_sec;
}
-static void
+void
_gtk_icon_theme_ensure_builtin_cache (void)
{
static gboolean initialized = FALSE;
/* Non-public methods */
void _gtk_icon_theme_check_reload (GdkDisplay *display);
+void _gtk_icon_theme_ensure_builtin_cache (void);
G_END_DECLS